/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.isp.obey.model;

import za.ac.cput.isp.obey.services.TimerClient;

/**
 *
 * @author Abduraghmaan
 */
public class Timer {
    private String state;
    private Timer time;

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
    
    public boolean activate(TimerClient client, String s)
    {
        boolean activated;
        
        time.setState(s);
        activated = client.timeOut(time);
        
        return activated;
    }
    
}
